<meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <style type="text/css" rel="stylesheet">
    form {
    margin: 0;
    }
    .editor {
    margin-top: 5px;
    margin-bottom: 5px;
    }
    .ke-content {
    font-family: Courier New;
    font-size: 12px;
    background-color: #ffffff;
}

  </style>
  <script type="text/javascript" charset="utf-8" src="/kindeditor/kindeditor.js"></script>
  <script type="text/javascript">
    KE.show({
        id : 'trend_scale_explanation',
        resizeMode :1,
        cssPath : '/kindeditor/examples/index.css',
        items : [
         'fontname',  'textcolor',  'bold', 'italic', 'underline',
        'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        'insertunorderedlist']
    });
    KE.show({
        id : 'trend_scale_solution',
        resizeMode :1,
        cssPath : '/kindeditor/examples/index.css',
        items : [
        'fontname', 'textcolor',  'bold', 'italic', 'underline',
        'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        'insertunorderedlist']
    });
  </script>
<p style="margin: 5px 0pt;"><%=link_to  '测试管理' , :controller=>"surveys" ,:action=>"index"%> >>
<%=link_to '倾向测试管理' ,:controller=>"t_tests_manage" , :action=>"index"%> >>
添加倾向 </p><br  />
<h3>添加结果（倾向）</h3><br />

<% form_for :trend_scale, :url => {:action => "create_trend_scale"}  ,:html=>{ :class=>"required-validate"} do |f| %>

  <%= hidden_field_tag "test_id", @test_id %>
  
  <p>
      结果:
      <%= f.text_field :name ,:class=>"required"%><br /> <br/>
      结果解释:<br/>
      <!--%= f.text_area :explanation %-->
      <textarea id="trend_scale_explanation" name="trend_scale[explanation]"
       style="width:500px;height:200px;visibility:hidden;" class="required"></textarea>
      <br /> 
      <!--在线编辑器开始-->

      <!--在线编辑器结束-->
  </p>

  <p>
    解决方案：<br/>
    <textarea id="trend_scale_solution" name="trend_scale[solution]" 
    style="width:500px;height:200px;visibility:hidden;" cols="50" rows="8" class="required"></textarea>
  </p>

  <p>
    <%= f.submit "保存" %>
  </p>
<% end %>
